const mongoose = require("./db");
const BrandSchema = new mongoose.Schema(
  {
    id: Number,
    name: String,
    logo: String,
    firstLetter: String,
    sort: Number,
    productCount: Number,
    productCommentCount: Number,
    showStatus: Number, // 显示状态
    onLineSales: Number, // 线上销量
    offLineSales: Number, // 线下销量
  },
  {
    versionKey: false,
  }
);
const BrandModel = mongoose.model("brand", BrandSchema, "brand");

module.exports = { BrandModel };
